**************************************************************************** Changelog: see the real snif index file **************************************************************************** ** THIS FILE IS SUPPOSED TO SHOW A DIRECTORY LISTING?? ** **************************************************************************** No, this file is used as a forwarder to the main snif file. See the example in the real snif index file. ****************************************************************************/ $dir = dirname($_SERVER["PHP_SELF"]); $pathArr = explode("/",$dir); $path = $_GET["path"]; $path = str_replace("../","",$path); if ($path[0]=='/') $path = substr($path,1); $subDirectory = $pathArr[count($pathArr)-1]."/".$path; Header("Location: ../?path=".$subDirectory); ?>